00001 00002 CommandCopy::CommandCopy(OSGWindows* osgwind) 00003 { 00004 osgwind_ = osgwind; 00005 rightCLK = 0; 00006 } 00007 00008 CommandCopy::CommandCopy(OSGWindows* osgwind, TraffEduObject* obj) 00009 00010 { 00011 osgwind_ = osgwind; 00012 rightCLK = 1; 00013 obj_ = obj; 00014 } 00015 00016 bool CommandCopy::execute() 00017 { 00018 osgwind_->clearCopiedObjects(); 00019 00020 if(rightCLK) 00021 osgwind_->setCopiedObjects(obj_); 00022 else 00023 osgwind_->setCopiedObjects(); 00024 00025 return true; 00026 } 00027 00028 bool CommandCopy::unexecute() 00029 { 00030 return true; 00031 }
1.4.6-NO